using MicroMsg.Common.Event;
using MicroMsg.Common.Utils;
using System;
namespace MicroMsg.Storage
{
	public class SnsPageStorage : StorageTable<SnsPage, string>
	{
		private const string TIME_LINE_USER_NAME = "sns_timeline_username_database_key";
		public static string getTimeLineUserName()
		{
			return "sns_timeline_username_database_key";
		}
		public SnsPageStorage() : base((SnsPage sns) => sns.strUserName)
		{
		}
		public override void notify(int operation, SnsPage item)
		{
			EventCenter.postCombineEvent(EventConst.ON_STORAGE_SNSPAGE_ADD + operation, item);
		}
		public void test()
		{
			base.clearAll();
			DebugEx.getTimeSpan();
			for (int i = 0; i < 300; i++)
			{
				base.method_3(new SnsPage
				{
					strUserName = "name_" + i
				});
			}
			base.clearAll();
			DebugEx.debugBreak();
		}
	}
}
